package algo3c3g3.model.material;

import algo3c3g3.model.*;

/**
 * Material no solido que daña a las unidades.
 */
public class BlackHole extends NonSolidMaterial
{
    protected BlackHole() {}
    
    public boolean isBreakable()
    {
        return false;
    }
    
    @Override
    public void affectUnitX(Unit unit)
    {
        unit.kill();
    }
    
    @Override
    public void affectUnitY(Unit unit)
    {
        unit.kill();
    }
    
    @Override
    public String toString()
    {
        return Material.BLACK_HOLE;
    }
}
